<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="org.osgi.framework.*"%>
<%@ page import="com.gzgi.framework.*"%>
<%@ page import="com.gzgi.framework.util.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.config.*"%>
<%@ page import="com.gzgi.osgi.runtime.*"%>
<%@ page import="com.gzgi.osgi.modules.service.*"%>
<%
        System.setProperty("aQute.fileinstall.dir", MessageProperties.getConfigRootPath()+"/load");
        OSGiRuntime runtime = OSGiRuntime.getRuntime();
        BundleContext bundleContext = runtime.getBundleContext();
        System.out.println(bundleContext);
        ServiceReference ref = bundleContext.getServiceReference(EntityService.class.getName());
		if (ref != null) {
			Object object = bundleContext.getService(ref);
			System.out.println(object.getClass().getName());
			if (object instanceof EntityService) {
				System.out.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
				EntityService entityService = (EntityService) object;
				System.out.println(entityService);
			}
		}
 %>